﻿
@{
    ViewBag.Title = "Моите Бакноти";
}

<h2 class="legend-title">Моите Бакноти</h2>

<br />

@(Html.Kendo()
        .ListView<Scorpicore.MVC.ViewModels.PrivateBanknotesViewModel>()
    .Name("banknotes-authorized")
    .TagName("div")
            .ClientTemplateId("banknotes-authorized-template")
    .Pageable()
    .DataSource(data =>
    {
        data.Read("ReadBanknotes", "Home");
        data.ServerOperation(true);
        data.PageSize(5);
    }))



<script id="banknotes-authorized-template" type="text/x-kendo-template">
    <div class="row-fluid">
        <div class="span2">
            <img src="#:ImageUrl#" />
        </div>
        <div class="span2">
            <h5> #: Letters #</h5>
        </div>

        <div class="span2">
            <h5>#: SerialNumber #</h5>
        </div>

        <div class="span2">
            <h5>#: Distance # км.</h5>
        </div>

        <div class="span2">
            <p><a href="/Banknote/RedirectFromGrid?letters=#:Letters#&serialNumber=#:SerialNumber#" class="btn">Проследи...</a></p>
        </div>
    </div>
</script>

<script>
    function onAdditionalData() {
        return {
            text: $('#modelsearch').val()
        };
    }
</script>